package com.qf.area.mapper;

import com.qf.area.entity.Area;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.dto.PageDto;
import com.qf.vo.AreaVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 行政区划表 Mapper 接口
 * </p>
 *
 * @author xjj
 * @since 2023-10-31
 */
@Mapper
public interface AreaMapper extends BaseMapper<Area> {
    List<AreaVo> findAll();

    List<Area> findList(@Param("pageDto") PageDto<Area> pageDto, @Param("code") Integer code, @Param("name") String name);

    Long count(@Param("pageDto") PageDto<Area> pageDto,@Param("code") Integer code,@Param("name") String name);
}
